const WebSocket = require('ws')
 
const ws = new WebSocket('ws://localhost:8080/path')
 
ws.on('open', function open() {
  setInterval(() => {
    ws.send(`client: something${new Date()}`)  
  }, 1500)
})

ws.on('message', (data) => {
  console.log('server:', data);
}) 
